/**
 * XHGui colors
 *
 * red - #d46245
 * orange - #e9814f
 * green - #637964
 * yellow - #ffe85e
 * blue - #59bdd2
 * pink - #e3b7b3
 * purple - #b63c71
 */
@font-face {
    font-family: 'Chunkfive';
    src: url('../fonts/Chunkfive-webfont.eot');
    src: url('../fonts/Chunkfive-webfont.eot?#iefix') format('embedded-opentype'),
         url('../fonts/Chunkfive-webfont.woff') format('woff'),
         url('../fonts/Chunkfive-webfont.ttf') format('truetype'),
         url('../fonts/Chunkfive-webfont.svg#MuseoSlab500') format('svg');
    font-weight: normal;
    font-style: normal;
}

/**
 * Grid extensions
 */
.row-spaced {
    margin-bottom: 20px;
}

/**
 * Typography
 */
h1, h2, h3 {
    margin: 15px 0;
}
h1, h2, h3, h4, h5, h6,
.nav-header,
.brand {
    -webkit-font-smoothing: antialiased;
    font-family: 'Chunkfive';
    font-weight: normal;
}
.units {
    color: #999999;
}
.text-wrap {
    word-break: break-all;
}

.function-name {
    font-family: Consolas, Menlo, Courier, monospace;
}

/**
 * Top Navbar
 */
.navbar-inner {
    background: -webkit-linear-gradient(rgb(247, 247, 247), rgb(240, 240, 240));
    background: -moz-linear-gradient(rgb(247, 247, 247), rgb(240, 240, 240));
    background: linear-gradient(rgb(247, 247, 247), rgb(240, 240, 240));
}
.navbar-static-top .navbar-inner {
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
}
.navbar .brand {
    color: rgb(100, 100, 118);
}
.navbar .nav > li > a {
    color: #444;
}
.navbar .brand {
    border-right: 1px solid rgb(212, 212, 212);
    -webkit-box-shadow: 1px 0px 1px white;
    -moz-box-shadow: 1px 0px 1px white;
    box-shadow: 1px 0px 1px white;
}
.flash {
    margin-top: 20px;
}

/**
 * Sidebar navs
 */
.sidebar-nav {
    border-right: 1px solid rgb(221, 221, 221);
}
.nav-list dl {
    margin: 0;
}
.sidebar-nav li a {
    display: inline;
    padding: 0;
    margin: 0;
}
.sidebar-nav li a:hover {
    background: transparent;
}

/**
 * Search bar/box
 */
.searchbar {
    margin: 10px 0;
    padding: 10px;
    background: -webkit-linear-gradient(rgb(247, 247, 247), rgb(240, 240, 240));
    background: -moz-linear-gradient(rgb(247, 247, 247), rgb(240, 240, 240));
    background: linear-gradient(rgb(247, 247, 247), rgb(240, 240, 240));
    -o-border-radius: 4px;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    border-radius: 4px;
}
.searchbar form {
    margin-bottom: 0;
}
.searchbar .form-actions {
    margin: 0px;
    float: left;
    background: none;
    padding: 25px 0 0 0;
    border: none;
}

/**
 * Pagination
 *
 * Remove the borders and boxshadows bootstrap applies.
 */
.pagination{text-align: center;}
.pagination ul {
    border: none;
    -moz-box-shadow: none;
    -webkit-box-shadow: none;
    box-shadow: none;
}
.pagination > ul > li.active > span {
    color: #d46245;
}
.pagination > ul > li > span,
.pagination > ul > li > a {
    border-top: 0;
    border-bottom: 0;
}
.pagination ul > li:last-child > span,
.pagination > ul > li:last-child > a {
    border-right: 0;
}
.pagination ul > li:first-child > span,
.pagination > ul > li:first-child > a {
    border-left: 0;
}

/**
 * Tables
 */
th {
    text-align: center;
}
thead th {
    border-bottom: 1px solid #aaa;
}
/* Sort link colors are reversed */
thead .sort-link {
    color: #2f99af;
}
thead .sort-link:hover {
    color: #59bdd2;
}
th.right,
td.right {
    text-align: right;
}
th.header {
    background: url(../img/bg.gif) center right no-repeat;
    cursor: pointer;
    padding-right: 18px;
}
.sort-desc,
.sort-asc {
    background-repeat: no-repeat;
    background-position: center right;
    cursor: pointer;
    padding-right: 18px;
}
.sort-desc,
th.headerSortDown {
    background-image: url(../img/desc.gif);
}
.sort-asc,
th.headerSortUp {
    background-image: url(../img/asc.gif);
}
.tableFloatingHeader {
    background-color: #fff;
    border-bottom: 1px solid rgb(217, 217, 217);
}
.tableFloatingHeaderOriginal th {
    border-top: none;
}
tr .no-results {
    text-align: center;
    font-size: 1.2em;
}


.tooltip-inner {
    max-width: 400px;
    word-wrap: break-word;
}


/**
 * Watch lists
 */
.watch-list .btn {
    vertical-align: top;
    margin-top: 2px;
    display: none;
}
.watch-list li:hover .btn {
    display: inline-block;
}

/**
 * Chart styles
 */
.relative-box,
.chart-container {
    position: relative;
}
.popover {
    min-width: 125px;
    width: auto;
}

.chart-axis path,
.chart-axis line {
    fill: none;
    stroke: #666;
    shape-rendering: crispEdges;
}
.chart-line {
    fill: none;
    stroke: steelblue;
    stroke-width: 2px;
}
.chart-dots circle {
    stroke: white;
    stroke-width: 1.5px;
}

.chart-bar {
    fill: #d46245;
}

/**
 * Popover styles.
 */
.popover h5 {
    font-weight: bold;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.popover h5:first-child {
    margin-top: 0;
}


/**
 * Call graph chart
 */

/* Prototype graph styles. */
.callgraph {
    overflow: hidden;
    cursor: move;
}
.callgraph tspan,
.callgraph text {
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
}

.callgraph .node {
    cursor: pointer;
}

.callgraph .node rect {
    stroke: #333;
    stroke-width: 1.5px;
    fill: #fff;
}
.callgraph .active rect {
    stroke: #59bdd2;
    stroke-width: 4px;
}

.callgraph .edgeLabel rect {
    fill: #fff;
}

.callgraph .edgePath {
    stroke: #333;
    stroke-width: 1.5px;
    fill: none;
}
#metric-popover {
    left: auto;
    width: 250px;
}
#loading {
    text-align: center;
    margin: 20px;
}
#callgraph-details {
    width: 40%;
    height: 100%;
    position: fixed;
    top: 0;
    left: -40%;
    z-index: 1020;
    background: #fff;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.5);
    transition: left 0.25s ease-out;
}
#callgraph-details.active {
    left: 0;
    transition: left 0.25s ease-out;
}
.details-content {
    height: 100%;
    padding: 0 10px 10px 10px;
    overflow-y: scroll;
}
.button-close {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #888;
    color: #fff;
    display: inline-block;
    padding: 4px;
    line-height: 12px;
    font-size: 24px;
    height: 20px;
    width: 20px;
    border-radius: 15px;
    text-align: center;
    -moz-border-radius: 15px;
    -webkit-border-radius: 15px;
    vertical-align: middle;
    cursor: pointer;
}

/**
 * Waterfall chart
 */
.waterfall .axis {
    shape-rendering: crispEdges;
}
.waterfall .x.axis line {
    stroke: #ccc;
}
.waterfall .x.axis .minor {
    stroke-opacity: .5;
}
.waterfall .x.axis path {
    display: none;
}
.waterfall .bar {
    fill: #b63c71;
}
.waterfall text {
    color: black;
}

/**
 * FlameGraph
 *
 * Note: Uses "body" selector to make sure specificity is higher
 * than the original styles in d3.flameGraph.css.
 */

/* Use white stroke instead of grey, to make them invisible on our background */
body .d3-flame-graph rect,
body .d3-flame-graph rect:hover {
    stroke: #fff;
    stroke-width: 1px;
}
/* Instead of stroke, change text color on hover */
body .d3-flame-graph .frame:hover .label {
    color: #fff;
}

.d3-flame-graph-tip {
  line-height: 1;
  padding: 12px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(0, 0, 0, 0.2);
  color: #000;
  pointer-events: none;
}

/* Creates a small triangle extender for the tooltip */
.d3-flame-graph-tip:before,
.d3-flame-graph-tip:after {
  pointer-events: none;
  content: '';
  position: absolute;
  display: block;
  width: 0;
  height: 0;
  border-width: 11px;
  border-color: transparent;
  border-style: solid;
  left: 50%;
  z-index: 2;
}
.d3-flame-graph-tip:after {
  border-bottom-color: #fff;
  margin-left: -11px;
  top: -22px;
  z-index: 2;
}
.d3-flame-graph-tip:before {
  border-width: 12px;
  border-bottom-color: #999;
  margin-left: -12px;
  top: -24px;
}


/**
 * Run details
 */
.back-link {
    float: right;
    margin-top: 20px;
    margin-left: 10px;
}

/**
 * Compare runs
 */
.compare-base {
    background: #e9814f;
}
.compare-head {
    background: #59bdd2;
}
.diff-up {
    color: #d46245;
}
.diff-down {
    color: #637964;
}
.diff-same {
    color: #999;
}

/**
 * Footer
 */
.footer-text {
    text-align: center;
}

.text-right{
 text-align: right;
}

.dropdown-menu li>a.selected{background-color: #59bdd2; color: #fff;}